package cate.common.table.activity.heroreplace.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;

public class HeroReplaceGroupRow extends ERow implements RWItem {
    public int group;

    public int heroGroup;

    public int heroTid;

    public double weight;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.group = xrw.getInteger("目标英雄池分组");
        this.heroGroup = xrw.getInteger("材料英雄强度");
        this.heroTid = xrw.getInteger("目标英雄id");
        this.weight = xrw.getDouble("权重",0.0);
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
